﻿using System.Collections.Generic;
using System.Data;

namespace smp.QueryDb
{
    public interface IDbAdapter
    {
        string ParameterPix { get; }

        IDbConnection CreateConnection(string connectionString);

        ICommand GeneratePagedQuery(string columnStatement, string fromStatement, string whereStatement,
                                      string orderStatement, int page, int pageSize, IList<IParameter> parameters);
    }
}
